

#include "cybertron/core/Frame.hpp"
#include <atomic>

CYBERTRON_BEGIN

std::atomic<unsigned int> gFrameNumber(0);

CybertronCoreAPI unsigned int Frame::frameCurrent()
{
	return gFrameNumber;
}

CybertronCoreAPI void Frame::frameStepForward()
{
	gFrameNumber++;
}

CybertronCoreAPI void Frame::frameSet(unsigned int frame)
{
	gFrameNumber = frame;
}

CYBERTRON_END
